home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #4 / Amiga Plus CD - 2000 - No. 4.iso / Tools / DFUE / SimpleFTP / Install < prev    next >
Encoding:
Text File  |  2000-04-24  |  5.0 KB  |  187 lines

  1. ; Installer Script for SimpleFTP
  2. ; $VER: SimpleFTP-Install v1.2 (24.4.00)
  3.  
  4. (user 2)
  5. (set #theirlevel @user-level)
  6.  
  7. (set #wbversion 0)
  8. (set #wbversion (getversion "workbench.library" (resident)))
  9. (set #wbversion (/ #iconversion 65536) )
  10. (if (< #wbversion 44)
  11.   (
  12.    ;execute Install3.5
  13.    (run "C:Installer InstallOS3.5 APPNAME SimpleFTP DEFUSER EXPERT MINUSER EXPERT LOGFILE RAM:SimpleFTP.log")
  14.   )
  15.   (
  16.     (set #install-docs
  17.     (cat "Install documentation?\n"
  18.     ))
  19.  
  20.     (set #select-lang
  21.     (cat "Select language:"
  22.     ))
  23.  
  24.     (set #not-installed
  25.     (cat "\nSimpleFTP has NOT been installed.\n"
  26.     ))
  27.  
  28.     (set #goodbye
  29.     (cat "\nInstallation of SimpleFTP is complete.\n\n"
  30.          "If you have used a version previous to v1.83,\n"
  31.          "but after v1.80, it is important that you run\n"
  32.          "the SiteConverter tool to update your saved\n"
  33.          "list of favourite FTP sites.\n"
  34.          "(Copy it to your SimpleFTP directory first)"
  35.     ))   
  36.  
  37.     (set #select-dir
  38.     (cat "Please select somewhere to install SimpleFTP\n"
  39.          "(A directory is NOT created for you)"
  40.     ))
  41.  
  42.     (set #my-address
  43.     (cat "\nContact Information\n\n"
  44.         "Author: Rick Hodger\n"
  45.          "e-Mail: rick@thehub.u-net.com\n"
  46.          "Bugs: bugs@thehub.u-net.com\n"
  47.          "Web: http://www.thehub.u-net.com\n"
  48.     ))
  49.  
  50.     (set #copyright
  51.     (cat "\nSimpleFTP is (C) Copyright 1998-1999 Rick Hodger\n"
  52.          "Written by Rick Hodger\n\n"
  53.          "The author in no way offers any guarantees or warranties "
  54.          "with this program.  By continuing this installation, "
  55.          "you agree that the author is in no way responsable "
  56.          "for any damage caused.\n\n"
  57.          "Do you agree to these terms?"
  58.     ))
  59.  
  60. ;**************************************************************************************************
  61.  
  62.     (complete 5)
  63.     (set agree (askbool (prompt #copyright)
  64.           (help #install-docs-help)
  65.           (choices "Yes" "No")
  66.          )
  67.     )
  68.  
  69.     (if (= agree 0)       (
  70.       (message #not-installed)
  71.       (exit (quiet))
  72.     ))
  73.  
  74. ;******************************************** Locale Stuff *****************************************
  75.  
  76.     (complete 10)
  77.     (set catalog
  78.       (askchoice
  79.         (choices "English (Built-in)" "Czech" "Deutsch" "Español" "Français" "Greek" "Italiano" "Norsk" "Português" "Svenska")
  80.          (prompt #select-lang)
  81.         (help   "None here")
  82.       )
  83.     )
  84.     (set loc-target "LOCALE:Catalogs/")
  85.     (set loc-source "locale/")
  86.   
  87.     (if (= catalog 1)     (
  88.       (set loc-target (tackon loc-target "Czech"))
  89.       (set loc-source (tackon loc-source "Czech"))
  90.       (set loc-use 1)
  91.     ))
  92.  
  93.     (if (= catalog 2)     (
  94.       (set loc-target (tackon loc-target "Deutsch"))
  95.       (set loc-source (tackon loc-source "Deutsch"))
  96.       (set loc-use 1)
  97.     ))
  98.    
  99.     (if (= catalog 3)     (
  100.       (set loc-target (tackon loc-target "Español"))
  101.       (set loc-source (tackon loc-source "Español"))
  102.       (set loc-use 1)
  103.     ))
  104.  
  105.     (if (= catalog 4)     (
  106.       (set loc-target (tackon loc-target "Français"))
  107.       (set loc-source (tackon loc-source "Français"))
  108.       (set loc-use 1)
  109.     ))
  110.  
  111.     (if (= catalog 5)     (
  112.       (set loc-target (tackon loc-target "Greek"))
  113.       (set loc-source (tackon loc-source "Greek"))
  114.       (set loc-use 1)
  115.     ))
  116.  
  117.     (if (= catalog 6)     (
  118.       (set loc-target (tackon loc-target "Italiano"))
  119.       (set loc-source (tackon loc-source "Italiano"))
  120.       (set loc-use 1)
  121.     ))
  122.  
  123.     (if (= catalog 7)     (
  124.       (set loc-target (tackon loc-target "Norsk"))
  125.       (set loc-source (tackon loc-source "Norsk"))
  126.       (set loc-use 1)
  127.     ))
  128.  
  129.     (if (= catalog 8)     (
  130.       (set loc-target (tackon loc-target "Português"))
  131.       (set loc-source (tackon loc-source "Português"))
  132.       (set loc-use 1)
  133.     ))
  134.  
  135.     (if (= catalog 9)     (
  136.       (set loc-target (tackon loc-target "Svenska"))
  137.       (set loc-source (tackon loc-source "Svenska"))
  138.       (set loc-use 1)
  139.     ))
  140.  
  141.     (if (= loc-use 1)    (
  142.       (set loc-source (tackon loc-source "SimpleFTP.catalog"))
  143.     ;  (if (< (exists (loc-target)) 2) makedir loc-target) )
  144.        (copyfiles (
  145.         (source loc-source)
  146.         (dest   loc-target)
  147.       ))
  148.     ))
  149.  
  150. ;*************************************** Select destination ****************************************
  151.  
  152.     (complete 20)
  153.     (set target1         (askdir
  154.        (help   "No help here matey!")
  155.        (prompt #select-dir)
  156.        (default "Miami:")
  157.     ))
  158.  
  159.     (set target2 target1)
  160.  
  161.     (complete 40)
  162.     (copyfiles (
  163.        (prompt "Select files you want installed")
  164.        (help   "Umm....duh?")
  165.        (source  "")
  166.        (dest    target1)
  167.        (choices "SimpleFTP" "SimpleFTP.info" "SimpleFTP.cfg" "SimpleFTP.sites" "Icons")
  168.        (CONFIRM)
  169.     ))
  170.  
  171.     (complete 80)
  172.     (copyfiles (
  173.        (prompt "Select files you want installed")
  174.        (help   "Umm...duh?")
  175.        (source "")
  176.        (dest   target1)
  177.        (choices "Docs" "Docs.info")
  178.        (CONFIRM)
  179.     ))
  180.  
  181.     (complete 100)
  182.     (message #goodbye)
  183.     (message #my-address)
  184.   )
  185. )
  186. (exit (quiet))
  187.